function pop = encodi(popsize,length,dimension,a,b)

%r = a + (b-a).*rand(2*popsize,1)

%for i=1:popsize
%    pop(i,:)=[r(i,1),r(i+popsize,1)];
%end
pop=round(rand(popsize,dimension*length+1))

end